<!DOCTYPE html>
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5"
>
<head>
    <meta charset="UTF-8">
    <title>main</title>
</head>
<body>
登录账号<span sec:authentication="name"></span>
登录账号<span sec:authentication="principal.username"></span>
凭证<span sec:authentication="credentials"></span>
权限和角色<span sec:authentication="authorities"></span>
客户端地址<span sec:authentication="details.remoteAddress"></span>
sessionid<span sec:authentication="details.sessionId"></span>
<a href="main1.html">跳转main1</a>
<p>
<h1 th:text="thymeleaf字体">thymeleaf字体</h1></p>

<p><a href="/logout">注销用户</a></p>
</body>
</html>